package game.editer.config;

import game.data.ActionData.ActionType;
import game.editer.AttrEditer.AttrData;

class ActionDataConfig {
	public static var ATTRIBUTES:Array<AttrData> = [
		{
			text: "动作名称",
			key: "name",
			type: String,
			defalutValue: "",
		},
		{
			text: "类型",
			key: "type",
			type: Eumes,
			attr: [
				{
					text: "空中技能",
					data: ActionType.AIR_SKILL
				},
				{
					text: "地面技能",
					data: ActionType.GROUND_SKILL
				},
				{
					text: "自动处理",
					data: ActionType.AUTO
				},
				{
					text: "空中、地面技能",
					data: ActionType.ALL_SKILL
				}
			],
			defalutValue: 1
		},
		{
			text: "消耗HP",
			key: "hpConsume",
			type: Number,
			defalutValue: 0,
		},
		{
			text: "消耗MP",
			key: "mpConsume",
			type: Number,
			defalutValue: 0,
		},
		{
			text: "消耗气力",
			key: "effortConsume",
			type: Number,
			defalutValue: 0,
		},
		{
			text: "空中移动",
			key: "allowAirMove",
			type: Boolean,
			defalutValue: false
		},
		{
			text: "禁止强制",
			key: "diabledForce",
			type: Boolean,
			defalutValue: false
		},
		{
			text: "禁止被强制",
			key: "diabledForceFirst",
			type: Boolean,
			defalutValue: false
		},
		{
			text: "重力比率",
			key: "airGravity",
			type: Number,
			defalutValue: 0.2
		},
		{
			text: "冷却",
			key: "cd",
			type: Number,
			defalutValue: 0
		},
		{
			text: "帧率",
			key: "fps",
			type: Number,
			defalutValue: 16
		},
		{
			text: "输入键控",
			key: "groupKeys",
			type: KeyboardInput,
			defalutValue: []
		}
	];
}
